package com.entity;

import com.inter.HumanInter;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Human implements HumanInter {
    private Long id;
    private String username;
    private Date birthday;
    private String sex;

    public void eat() {
        System.out.println("Human can eat");
    }


    public void play() {
        System.out.println("Human can play");
    }

    public void sleep() {
        System.out.println("Human can sleep");
    }
}
